﻿using System.Windows;

using BlackJack.Base.Multicast;
using BlackJack.Infrastructure.IoC;

namespace BlackJack.Infrastructure
{
    public class ApplicationBase : Application
    {
        protected static IGateway _gateway;

        public static IGateway Gateway
        {
            get
            {
                if (_gateway == null)
                    _gateway = ContainerLocator.Instance.Resolve<IGateway>();

                return _gateway;
            }
        }
    }
}
